<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page import="com.cap.bts.framework.usermgnt.constant.EmployeeStatus"%>    
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>购买详细信息</title>
<%@include file="../include/include.jsp"%>
<link rel="stylesheet" type="text/css" href="${csspath }/public.css" />
<script type="text/javascript" src="${layerPath}/jquery/jquery-1.8.3.js"></script>
<script type="text/javascript" src="${layerPath}/layer.js"></script>
<link rel="stylesheet" type="text/css" href="${csspath }/datepicker.css"/>
<script type="text/javascript" src="${jspath }/ui.datepicker_zh-CN.js"></script>
<script type="text/javascript" src="${jspath }/jquery.ui.min.js"></script>

</head>
<script type="text/javascript">


function closeLayer(){
	//当你在iframe页面关闭自身时
	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
	parent.layer.close(index); //再执行关闭  	
}
</script>

<body>
<div id="content">	
		<!-- wrap -->
		<div id="wrap">
		<form:form id="info_form" action="#" method="post" >
		  <div class="data_div">
					<table class="data_tab_blank">
						<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">购买人手机</th>
							<td >${dto.mobilePhone }</td>
						</tr>
						<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">购买人姓名</th>
							<td >${dto.memberName}</td>
						</tr>
						<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">购买人车牌</th>
									<td>${dto.carPlate }</td>
						</tr>
						<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">购买门店号</th>
									<td>${dto.dealerId}</td>
						</tr>
							<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">购买价格</th>
									<td ><fmt:parseNumber value="${dto.price}" type="number" integerOnly="true"/>元</td>
						</tr>
						<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">卡片名称</th>
									<td >
									${dto.cardName}
									</td>
						</tr>
						<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">套餐名称</th>
									<td >
									${dto.packageName}
									</td>
						</tr>
						
						<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">购买日期</th>
									<td >
									<fmt:formatDate value="${dto.purchaseDate}" pattern="yyyy-MM-dd HH:mm:ss" var="purchaseDate"/>
							                        ${fn:substring(purchaseDate, 0, 10)}
									</td>
						</tr>
						<tr>
							<th width="20%" style="text-align: right;padding-right: 30px;">是否已激活</th>
									<td>
										<core:if test="${dto.isActived}">是</core:if>
										<core:if test="${!dto.isActived}">否</core:if>
									</td>
						</tr>
							</table>
							</div>
							 <div class="spliter h_10"></div>           
			     			 <div class="spliter h_5"></div> 
							<div  style="width:500px;height:50px;text-align: center">
				                <input type="button" class="btn" onClick="closeLayer()" value="取消"/>
            				</div>
		</form:form>
		</div>

			
            </div>
</body>
</html>